﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="startlist.aspx.cs" Inherits="appleader_projects_startlist" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>启动项目</title>
    <link href="../../css/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <div id="content">
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                ConnectionString="<%$ ConnectionStrings:appConnectionString %>" 
                SelectCommand="SELECT project.projectid, project.projectname, project.starttime, project.endtime, method.methodname, model.modelname, project.modelid, project.methodid FROM project INNER JOIN method ON project.methodid = method.methodid INNER JOIN model ON project.modelid = model.modelid WHERE (project.organizationid = @organizationid) AND (project.state = @state)">
                <SelectParameters>
                    <asp:SessionParameter Name="organizationid" SessionField="organizationid" 
                        Type="Int32" />
                    <asp:Parameter DefaultValue="未评的" Name="state" Type="String" />
                </SelectParameters>
            </asp:SqlDataSource>
            <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
                AutoGenerateColumns="False" CellPadding="4" DataKeyNames="projectid" 
                DataSourceID="SqlDataSource1" ForeColor="#333333" GridLines="None" PageSize="5" 
                Width="100%">
                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                <Columns>
                    <asp:HyperLinkField DataNavigateUrlFields="projectid" 
                        DataNavigateUrlFormatString="edit.aspx?projectid={0}" 
                        DataTextField="projectname" HeaderText="项目名称" />
                    <asp:HyperLinkField DataNavigateUrlFields="modelid" 
                        DataNavigateUrlFormatString="~/orgman/models/addrule.aspx?modelid={0}" 
                        DataTextField="modelname" HeaderText="评估模型">
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:HyperLinkField>
                    <asp:HyperLinkField DataNavigateUrlFields="methodid" 
                        DataNavigateUrlFormatString="~/orgman/methods/modi.aspx?methodid={0}" 
                        DataTextField="methodname" HeaderText="评估方法">
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:HyperLinkField>
                    <asp:BoundField DataField="starttime" HeaderText="开始时间" 
                        SortExpression="starttime">
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="endtime" HeaderText="结束时间" SortExpression="endtime">
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:HyperLinkField DataNavigateUrlFields="projectid" 
                        DataNavigateUrlFormatString="start.aspx?projectid={0}" Text="启动项目">
                        <ItemStyle CssClass="bacimg1" HorizontalAlign="Right" Width="67px" />
                    </asp:HyperLinkField>
                </Columns>
                <PagerStyle Font-Bold="True" ForeColor="Black" HorizontalAlign="Left" />
                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <EditRowStyle BackColor="#999999" />
                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
            </asp:GridView>
        </div>
    
    </div>
    </form>
</body>
</html>
